package com.sky.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ejlchina.searcher.bean.SearchBean;
import com.sky.domain.BaseEntity;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单明细
 */
@Data
@EqualsAndHashCode(callSuper = true)
@SearchBean(tables = "order_detail o", where = "o.del_flag = '0'")
@TableName("order_detail")
public class OrderDetail extends BaseEntity {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    //名称
    private String name;

    //订单id
    private Long orderId;

    //菜品id
    private Long dishId;

    //套餐id
    private Long setmealId;

    //口味
    private String dishFlavor;

    //数量
    private Integer number;

    //金额
    private BigDecimal amount;

    //图片
    private String image;
}
